<%@ page language="java" contentType="text/html; charset=US-ASCII"
	pageEncoding="US-ASCII"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">

	<link href="css/form.css" rel="stylesheet">
	<!--  IMPORT  PER LA MULTI SELECT  -->
	
	<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/redmond/jquery-ui.css" />
	<link rel="stylesheet" type="text/css" href="css/jquery.multiselect.css">
	<link rel="stylesheet" type="text/css" href="css/jquery.multiselect.filter.css">
	<link href="css/ajaxfileupload.css" rel="stylesheet">
	
	
</head>
<body>

	<%@include file="headerAmministratore.jsp"%>
	
	<script type="text/javascript" src="js/jquery.multiselect.filter.js"></script>
	<script type="text/javascript" src="js/jquery.multiselect.js"></script>
	<script type="text/javascript" src="js/ajaxfileupload.js"></script>
	<script type="text/javascript" src="js/upload.js"></script>
	<script type="text/javascript" src="js/inserimentoProdottoAdmin.js"></script>
	<script type="text/javascript" src="bootstrap/js/tooltip.js"></script>
	<script type="text/javascript" src="js/noty/packaged/jquery.noty.packaged.min.js"></script>

	
	
	<form id="insert" class="form-horizontal" action="./inserimentoProdottoAdmin" method="post">

		<!-- TITOLO -->
		<div class="form-group">
			<label for="titolo" class="col-sm-2 control-label">Titolo</label>
			<div class="col-sm-6">
				<input type="text" name="PROD_TIT" class="form-control" id="titolo"
					placeholder="Inserisci titolo"   data-toggle="tooltip">
			</div>
		</div>
		<!-- /TITOLO -->

		<!-- CODICE -->
		<div class="form-group">
			<label for="codice" class="col-sm-2 control-label">Codice</label>
			<div class="col-sm-6">
				<input type="text" name="PROD_COD" class="form-control" id="codice"
					placeholder="Inserisci codice"  >
			</div>
		</div>
		<!-- /CODICE -->
		
		<!-- PROPRIETARIO -->
		<div class="form-group">
			<label for="proprietario" class="col-sm-2 control-label">Proprietario</label>
			<div class="col-sm-6">
				<select id="selectProprietario" name="PROD_PROPR" class="form-control" >
				</select>
			</div>
		</div>
		<!-- /PROPRIETARIO -->

		<!-- AUTORI -->
		<div class="form-group">
			<label for="autori" class="col-sm-2 control-label">Autori</label>
			<div class="col-sm-6">
				<select id="selectAutori" name="PROD_AUTORI" multiple="multiple" size="10">
				</select>
			</div>
		</div>
		<!-- /AUTORI -->

		<!-- ABSTRACT -->
		<div class="form-group">
			<label for="abstract" class="col-sm-2 control-label">Abstract</label>
			<div class="col-sm-6">
				<textarea name="PROD_ABSTRACT" class="form-control" id="abstract"
					rows="5" placeholder="Inserisci abstract"  ></textarea>
			</div>
		</div>
		<!-- /ABSTRACT -->

		<!-- ANNO_PUBB -->
		<div class="form-group">
			<label for="anno-pubblicazione" class="col-sm-2 control-label">Anno<br />
				pubblicazione
			</label>
			<div class="col-sm-6">
				<input type="number" min="1970" max="2014" name="PROD_ANNO_PUBB" class="form-control"
					id="anno-pubblicazione" placeholder="Inserisci anno"  >
			</div>
		</div>
		<!-- /ANNO_PUBB -->

		<!-- PUBBLICO -->
		<div class="form-group">
			<label for="pubblico" class="col-sm-2 control-label">Pubblico</label>
			<div class="col-sm-6">
				<select name="PROD_PUBB" class="form-control" id="pubblico"  >
					<option value="X" class="hidden"></option>
					<option value="S">SI</option>
					<option value="N">NO</option>
				</select>
			</div>
		</div>
		<!-- /PUBBLICO -->

		<!-- LINGUA -->
		<div class="form-group">
			<label for="lingua" class="col-sm-2 control-label">Lingua</label>
			<div class="col-sm-6">
				<input type="text" name="PROD_LING" class="form-control" id="lingua"
					placeholder="Inserisci lingua"  >
			</div>
		</div>
		<!-- /LINGUA -->

		<!-- TIPOLOGIA -->
		<div class="form-group">
			<label for="tipologia" class="col-sm-2 control-label">Tipologia</label>
			<div class="col-sm-6">
				<select name="PROD_TIP" class="form-control" id="tipologia"  
					onchange="testValue(this)">
					<option value="nessuna" class="hidden"></option>
					<option value="articolo_libro">Articolo libro</option>
					<option value="articolo_rivista">Articolo rivista</option>
					<option value="monografia">Monografia</option>
					<option value="brevetto">Brevetto</option>
					<option value="proceeding">Proceeding</option>
					<option value="curatela">Curatela</option>
					<option value="altro">Altro</option>
				</select>
			</div>
		</div>
		<!-- /TIPOLOGIA -->


		<!-- MONOGRAFIA FORM AGGIUNTIVI -->
		<div id="monografia" class="hidden formProduct">

			<div class="form-group">
				<label for="argomento" class="col-sm-2 control-label">Argomento</label>
				<div class="col-sm-6">
					<input type="text" name="PROD_ARGOMENTO" class="form-control"
						id="argomento" placeholder="Inserisci argomento">
				</div>
			</div>

			<div class="form-group">
				<label for="volumi" class="col-sm-2 control-label">Volumi</label>
				<div class="col-sm-6">
					<input type="number" name="PROD_VOLUM" min="0" max="99"
						class="form-control" id="volumi" placeholder="Inserisci volumi">
				</div>
			</div>

		</div>

		<!-- /MONOGRAFIA FORM AGGIUNTIVI -->


		<!-- ARTICOLO LIBRO FORM AGGIUNTIVI  -->
		<div id="art-libro" class="hidden formProduct">
			<div class="form-group">
				<label for="pagine" class="col-sm-2 control-label">Pagine(da-a)</label>
				<div class="col-sm-6">
					<input type="text" name="PROD_PAG_D_A" class="form-control"
						id="pagine" placeholder="Inserisci pagine">
				</div>
			</div>

			<div class="form-group">
				<label for="ISBN" class="col-sm-2 control-label">ISBN</label>
				<div class="col-sm-6">
					<input type="text" name="PROD_ISBN" class="form-control" id="ISBN"
						placeholder="Inserisci ISBN">
				</div>
			</div>

			<div class="form-group">
				<label for="casa-editrice" class="col-sm-2 control-label">Casa
					<br />Editrice
				</label>
				<div class="col-sm-6">
					<input type="text" name="PROD_CASA_ED" class="form-control"
						id="casa-editrice" placeholder="Inserisci casa editrice">
				</div>
			</div>

			<div class="form-group">
				<label for="capitoli" class="col-sm-2 control-label">Capitoli(da-a)</label>
				<div class="col-sm-6">
					<input type="text" name="PROD_CAP_DA_A" class="form-control"
						id="capitoli" placeholder="Inserisci capitoli">
				</div>
			</div>
		</div>
		<!-- /ARTICOLO LIBRO FORM AGGIUNTIVI  -->



		<!-- ARTICOLO RIVISTA FORM AGGIUNTIVI-->
		<div id="art-rivista" class="hidden formProduct">
			<div class="form-group">
				<label for="pagine" class="col-sm-2 control-label">Pagine(da-a)</label>
				<div class="col-sm-6">
					<input type="text" name="PROD_PAG_DA_A" class="form-control"
						id="pag" placeholder="Inserisci pagine">
				</div>
			</div>

			<div class="form-group">
				<label for="codice-ANCE" class="col-sm-2 control-label">Codice<br />ANCE
				</label>
				<div class="col-sm-6">
					<input type="text" name="PROD_ANCE" class="form-control"
						id="codice-ANCE" placeholder="Inserisci codice ANCE">
				</div>
			</div>

			<div class="form-group">
				<label for="nome-rivista" class="col-sm-2 control-label">Nome<br />Rivista
				</label>
				<div class="col-sm-6">
					<input type="text" name="PROD_RIVIS_NOME" class="form-control"
						id="nome-rivista" placeholder="Inserisci nome rivista">
				</div>
			</div>
		</div>
		<!-- /ARTICOLO RIVISTA FORM AGGIUNTIVI-->


		<!-- PROCEEDING FORM AGGIUNTIVI-->
		<div id="proceeding" class="hidden formProduct">
			<div class="form-group">
				<label for="luogo" class="col-sm-2 control-label">Luogo</label>
				<div class="col-sm-6">
					<input type="text" name="PROD_CONFER_LUOG" class="form-control"
						id="luogo" placeholder="Inserisci luogo">
				</div>
			</div>

			<div class="form-group">
				<label for="conferenza" class="col-sm-2 control-label">Conferenza</label>
				<div class="col-sm-6">
					<input type="text" name="PROD_CONFER" class="form-control"
						id="conferenza" placeholder="Inserisci conferenza">
				</div>
			</div>




			<div class="form-group">
				<label for="data" class="col-sm-2 control-label">Data</label>
				<div class="col-sm-6">
					<input type="date" name="PROD_CONFER_DATA" class="form-control"
						id="data" placeholder="Inserisci data">
				</div>
			</div>
		</div>
		<!-- //PROCEEDING FORM AGGIUNTIVI-->


		<div class="form-group" style="position: relative; left:30%;">
			<div class="col-sm-6">
				Seleziona un file:
					<input type="file" name="dataFile" id="fileChooser"/><br/><br/>
					<button type="button" id="allega" class="btn btn-default glyphicon glyphicon-link" value="Upload" onClick="checkFileUp()">
					<span style="font-family: arial">Allega File</span></button>
					<div class="container">
						<div class="success"></div>
					</div>
			</div>
		</div>

		<br /> <br /> <br />

		<div class="form-group" style="position: absolute; left:30%;">
			<button type="reset"
				class="btn btn-default glyphicon glyphicon-remove"
				onClick="removeTipologia()">
				<span style="font-family: arial"> Annulla</span>
			</button>
			<button type="submit" name="salva"
				class="btn btn-default glyphicon glyphicon-floppy-disk"
				id="salva" onClick="setSaveAdmin()">
				<span style="font-family: arial"> Salva</span>
			</button>
			<button type="submit" name="inserisci"
				class="btn btn-default glyphicon glyphicon-ok" 
				id="inserisci" onClick="setInsertAdmin()">
				<span style="font-family: arial"> Inserisci</span>
			</button>
		</div>
		
		<input type="hidden" value="" name="hdnval">

	</form>

	<%@include file="footer.jsp"%>
	
</body>
</html>